﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourPersistencia;
using PiscoSourDominio;

namespace PiscoSourRESTServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Platos" in code, svc and config file together.
    public class Platos : IPlatos
    {
        private PlatoDAO dao = new PlatoDAO();
        
        public Plato ObtenerPlato(string codigo)
        {
            return dao.ObtenerPlato(codigo);
        }

        public List<Plato> ListaPlatosFaltantes(string codigo)
        {
            return dao.ListaPlatosFaltantes(codigo).ToList();
        }

        public List<Plato> ListaPlatos()
        {
            return dao.ListarPlatos().ToList();
        }
    }
}
